﻿using System;
using System.Collections.Generic;
using System.Text;

namespace mozhi.smarterp.Finance.Documents
{
    /// <summary>
    /// 单据和凭证的关联关系
    /// </summary>
    public class DocumentJournalRelationship : AggregateRootBase<Guid>
    {
        public Guid DocumentId { private set; get; }

        public string DocumentNumber {  private set; get; }

        public Guid JournalId { private set; get; }

        public string JournalNumber {  private set; get; }

        private DocumentJournalRelationship(){}

        public DocumentJournalRelationship(Guid id , Guid documentId , string documentNumber , Guid journalId ,  string journalNumber)
        {
            Id = id;
            DocumentId = documentId;
            DocumentNumber = documentNumber;
            JournalId = journalId;
            JournalNumber = journalNumber;
        }
    }
}
